<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="moban::head">
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div class="layui-layout layui-layout-admin">
    <!--横切菜单-->
    <div th:replace="moban :: h_menu"></div>
    <!--纵切菜单-->
    <div th:replace="moban :: v_menu"></div>
    <!--内容主体-->
    <div class="layui-body">
        <script type="text/html" id="toolbarDemo">
            <div class="layui-btn-container">
                <button class="layui-btn layui-btn-sm" lay-event="add">添加会员</button>
                <button class="layui-btn layui-btn-sm" lay-event="delete">删除选中会员</button>
            </div>
        </script>

        <script type="text/html" id="editDemo">
            <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
            <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
        </script>
        <div style="padding: 15px;">
            <h3>会员管理</h3>
            <hr class="layui-bg-gray">

            <!-- 数据显示表格 -->
            <div class="layui-row">
                <div class="layui-col-md12 ">
                    <table id="tableData" lay-filter="test">
                       <tr th:each="list:${m}">
                           <td th:text="${list.mid}"></td>
                           <td th:text="${list.mname}"></td>
                           <td th:text="${list.mphone}"></td>
                           <td th:text="${list.memail}"></td>
                           <td th:text="${list.createtime}"></td>
                           <td th:text="${list.mstatus}"></td>
                       </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <!--底部固定区域-->
    <div th:replace="moban :: foot"></div>
</div>
<script src="/js/jquery-3.3.1.min.js"></script>
<script src="/js/dept.js" ></script>
</body>
</html>